﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MvcEngineModelItem<IList<PageContent>>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <title><%= this. Model.Localize("ContactsPageTitle")%></title>
    <%= Html.GetCssFile(Url.GetModuleCssPath("MvcEngine.Contact.css")) %>
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">

    <div class="page-title" id="contact-header">
         <h1><%= Model.Localize("ContactsPageHeader")%></h1>
    </div>
    
    <%= Html.Grid(Model.Item).Columns(column =>
{
    column.For(x => Html.UrlActionLink(x.ContentName, Url.Settings(x.Id))).Header(Model.Localize("NameHeader")).DoNotEncode();
}).Attributes(cellSpacing => "0", cellPadding => "0", border => "0", @class => "entries").RowAttributes(row => 
{ 
    var attributes = new Dictionary<string, object>();
    attributes.Add("class", "entry");
    return attributes;
} ).Footers(footer => 
{
    footer.For(string.Format(Model.Localize("TotalItems"), Model.Item.Count)).Attributes(colspan => "4");
})%>

</asp:Content>
